﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Xml;
using System.IO;

namespace FileMover.StandaloneUI
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();

            
        }

        private FileMover.Service.Model model;
        private void MainForm_Load(object sender, EventArgs e)
        {
            FileMover.Service.Registry.Scan();

            model = new FileMover.Service.Model();
            var xmlDoc=new XmlDocument();
            xmlDoc.Load(Path.Combine(Application.StartupPath, "SampleConfigData.xml"));
            model.Read(xmlDoc);

            configControl1.model = model;
        }
    }
}
